
set(CMAKE_C_COMPILER "g++")
set(CMAKE_CXX_COMPILER "g++")

#set(CMAKE_C_FLAGS )

set(CMAKE_CXX_FLAGS -std=c++11)
SET(CMAKE_CXX_FLAGS_DEFAULT "-O2 -g") 
SET(CMAKE_CXX_FLAGS_RELEASE "-O2") 
SET(CMAKE_CXX_FLAGS_DEBUG  "-O0 -g") 
SET(CMAKE_CXX_FLAGS "-Wall -fno-rtti" )

set(CMAKE_BUILD_TYPE Debug)

#SET(BUILD_SHARED_LIBS ON)
add_library(LinkList SHARED LinkList.c)



add_executable(UseList UseList.cpp)

target_link_libraries(UseList LinkList)